<?php
$site_config = function_lib::site_config();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>[Virtual Office] <?php echo $site_config['configuration_title']; ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <link rel="shortcut icon" type="image/png" href="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/favicon.png" />
        <style type="text/css">
            body { margin:0; padding:0; color:#333; background-color:#e9e9e9; font-size:11px; font-family:Arial, Helvetica; }
            form { margin:0; }
            .inputText { border:1px solid #b2b2b2; font-family:Arial, Helvetica; color:#666; }
            a { color:#666; text-decoration:none; }
            a:hover { color:#666; text-decoration:underline; }
            .button { padding:1px 7px 3px 7px; font-size:10px; background-color:#ccc; color:#555; border:1px solid #aaa; cursor:pointer; }
            /*.button:hover { color:#034ea2; border:1px solid #034ea2; }*/
            .button:hover { color:#a42a27; border:1px solid #a42a27; }
        </style>
    </head>
    <body onload="setFocus();">
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'login-form',
            'enableClientValidation' => true,
            'focus' => array($model, 'username'),
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
                ));
        ?>
        <div align="center">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td height="41" bgcolor="#3e7bc5" align="left" style="padding-left:30px;"><font color="#f1f1f1"><?php echo $site_config['configuration_title']; ?> &raquo; Virtual Office</font><br /></td>
                </tr>
                <tr>
                    <td height="20" bgcolor="#cccccc" align="center">
                        <?php echo $form->error($model, 'invalid', array('style' => 'color:#a42a27;')); ?>
                        <?php echo $form->error($model, 'verifyCode',  array('style' => 'color:#a42a27;')); ?>
                    </td>
                </tr>
            </table>
            <!-- Awal Content -->
            <table align="center" border="0" cellpadding="0" cellspacing="0" width="35%">
                <tbody>
                    <tr>
                        <td background="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/layout_r4_c4.gif" valign="top"><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/main_kiri_atas.gif" height="11" width="7" /></td>
                        <td bgcolor="#ffffff" valign="top" width="100%">
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tbody>
                                    <tr><td background="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/main_tengah_atas.gif"><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/spacer.gif" alt="" border="0" height="11" width="1" /></td></tr>
                                    <tr>
                                        <td height="475" valign="middle">
                                            <center>LOGIN VIRTUAL OFFICE</center>
                                            <!-- Begin of main block -->
                                            <table align="center" border="0" cellpadding="0" cellspacing="0" width="75%">
                                                <tbody>
                                                    <tr>
                                                        <td><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/spacer.gif" alt="" border="0" height="1" width="9" /></td>
                                                        <td width="100%"><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/spacer.gif" alt="" border="0" height="1" width="1" /></td>
                                                        <td><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/spacer.gif" alt="" border="0" height="1" width="10" /></td>
                                                        <td><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/spacer.gif" alt="" border="0" height="1" width="1" /></td>
                                                    </tr>
                                                    <tr>
                                                        <td><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/rounded_box_r1_c1.gif" alt="" border="0" height="11" width="9" /></td>
                                                        <td background="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/rounded_box_r1_c2.gif" width="100%"><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/spacer.gif" alt="" border="0" height="10" width="1" /></td>
                                                        <td><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/rounded_box_r1_c3.gif" alt="" border="0" height="11" width="10" /></td>
                                                        <td><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/spacer.gif" alt="" border="0" height="11" width="1" /></td>
                                                    </tr>
                                                    <tr>
                                                        <td background="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/rounded_box_r2_c1.gif"><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/spacer.gif" alt="" border="0" height="1" width="1" /></td>
                                                        <td bgcolor="#ffffff" width="100%">
                                                            <!-- Awal Isi -->
                                                            <br />
                                                            <form action="" method="post" name="loginForm" id="loginForm">
                                                                <table border="0" align="center" cellpadding="2" cellspacing="2">
                                                                    <tr>
                                                                        <td><?php echo $form->labelEx($model, 'username'); ?></td>
                                                                        <td colspan="2"><?php echo $form->textField($model, 'username', array('autocomplete' => 'off', 'style' => 'text-transform: uppercase;')); ?></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td><?php echo $form->labelEx($model, 'password'); ?></td>
                                                                        <td colspan="2"><?php echo $form->passwordField($model, 'password', array('autocomplete' => 'off', 'style' => 'text-transform: uppercase;')); ?></td>
                                                                    </tr>
                                                                    <?php if (extension_loaded('gd')): ?>
                                                                        <tr>
                                                                            <td>Kode Unik</td>
                                                                            <td><input type="text" name="login_form[verifyCode]" class="txt" size="5" /></td>
                                                                            <td><div class="chapca"><?php $this->widget('CCaptcha'); ?></div></td>
                                                                        </tr>
                                                                    <?php endif; ?>
                                                                    <tr>
                                                                        <td colspan="3" align="right"><br /><input name="submit" class="button" value="Login" type="submit" /></td>
                                                                    </tr>
                                                                </table>
                                                                <br />
                                                            </form>
                                                            <!-- Akhir Isi -->
                                                        </td>
                                                        <td background="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/rounded_box_r2_c3.gif"><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/spacer.gif" alt="" border="0" height="1" width="1" /></td>
                                                        <td><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/spacer.gif" alt="" border="0" height="1" width="1" /></td>
                                                    </tr>
                                                    <tr>
                                                        <td><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/rounded_box_r3_c1.gif" alt="" border="0" height="10" width="9" /></td>
                                                        <td background="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/rounded_box_r3_c2.gif" width="100%"><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/spacer.gif" alt="" border="0" height="10" width="1" /></td>
                                                        <td><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/rounded_box_r3_c3.gif" alt="" border="0" height="10" width="10" /></td>
                                                        <td><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/spacer.gif" alt="" border="0" height="10" width="1" /></td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                            <!-- End of main block-->
                                            <center><a href="./">Back to Main Page</a></center>
                                        </td>
                                    </tr>
                                    <tr><td>&nbsp;</td></tr>
                                </tbody>
                            </table>
                        </td>
                        <td background="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/layout_r4_c6.gif" valign="top"><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/main_kanan_atas.gif" height="11" width="14"></td>
                    </tr>
                    <tr>
                        <td valign="top"><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/layout_r5_c4.gif" alt="" border="0" height="13" width="7"></td>
                        <td background="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/layout_r5_c5.gif" width="100%"><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/spacer.gif" alt="" border="0" height="13" width="1"></td>
                        <td valign="top"><img src="<?php echo Yii::app()->params['memberUrl']; ?>/images/login/layout_r5_c6.gif" alt="" border="0" height="13" width="14"></td>
                    </tr>
                </tbody>
            </table>
            <!-- Akhir Content -->
        </div>
        <?php $this->endWidget(); ?>
    </body>
</html>